import { ipcMain } from 'electron'
import * as dbController from '../db/controller/dbController.js'
/**初始化*/
export function init() {
  dbRoute()
}
/**
 * 数据路由
 */
function dbRoute() {
  ipcMain.handle('db/testConnect', dbController.testConnect)
  ipcMain.handle('db/save', dbController.save)
}